﻿using System.Windows.Forms;
using Castle.Windsor;
using WindsorContainerTry.MailSender;

namespace WindsorContainerTry
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            WindsorContainer windsorContainer = new WindsorContainer();

            windsorContainer.AddComponent("messageSender",typeof(IMessageSender),typeof(MessageSender));
            windsorContainer.AddComponent("mailSender", typeof(ISender), typeof(WindsorContainerTry.MailSender.MailSender));

        }
    }
}
